﻿#region Using directives
using System;
using System.Web.UI;
//using ProcolDemo.ProfIdeasReference;

#endregion

namespace ProcolDemo
{
    public partial class ProfIdeas : Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            results.Visible = false;
            if (!Common.IsUserLoggedIn(Session))
                Response.Redirect("Default.aspx");

            Common.FillI18NStrings(this, Session);

            //search = Request.Params.Get("search");

            //txtSearch_ProfAutoCompleteExtender.CompletionSetCount = 10;
        }

        protected void SimpleSearch_Click(object sender, EventArgs e)
        {
            //if (String.IsNullOrEmpty(txtSearchProf.Text))
            results.Visible = true;
            searchIdea.Visible = true;
            //newIdea.Visible = false;
            myIdeas.Visible = false;
            //IdeasService ideasService = new IdeasService();

            //IdeaBean[] ideasList = ideasService.GetListOfIdeas(Common.GetUserId(Session), txtSearch.Text);
            //for (int i = 0; i < ideasList.Length; i++)
            //    if (ideasList[i].nameLength > 50)
            //        ideasList[i].name = ideasList[i].name.Substring(0, 49) + "...";

            //ShowResults.DataSource = ideasList;
            //ShowResults.DataBind();
        }

        protected void txtSearchProf_TextChanged(object sender, EventArgs e)
        {
        }
    }
}